package com.huika.dealontop.support.domain;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Description:
 * Created by zhouweiyong on 2015/11/25.
 */
public class OmisePayResultBean implements Parcelable {
    private long validTime;
    private ArrayList<CouponCodeBean> data;

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public ArrayList<CouponCodeBean> getData() {
        return data;
    }

    public void setData(ArrayList<CouponCodeBean> data) {
        this.data = data;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.validTime);
        dest.writeTypedList(data);
    }

    public OmisePayResultBean() {
    }

    protected OmisePayResultBean(Parcel in) {
        this.validTime = in.readLong();
        this.data = in.createTypedArrayList(CouponCodeBean.CREATOR);
    }

    public static final Creator<OmisePayResultBean> CREATOR = new Creator<OmisePayResultBean>() {
        public OmisePayResultBean createFromParcel(Parcel source) {
            return new OmisePayResultBean(source);
        }

        public OmisePayResultBean[] newArray(int size) {
            return new OmisePayResultBean[size];
        }
    };
}
